package com.gitee.form_token.mapper;

import com.gitee.form_token.dto.MenuDto;
import com.gitee.form_token.dto.TreeDto;
import com.gitee.form_token.entity.SysResource;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 资源表 Mapper 接口
 * </p>
 *
 * @author Saturn
 * @since 2024-10-30
 */
public interface SysResourceMapper extends BaseMapper<SysResource> {

    // 菜单列表 || 根据角色ID
    List<MenuDto> listResource(@Param(Constants.WRAPPER) Wrapper<SysResource> wrapper);

}
